<?php
/**
 * Created by PhpStorm.
 * User: 68008000
 * Date: 2017/11/14
 * Time: 23:50
 */

namespace app\admin\controller;


class Webset extends common
{
    protected $db;

    public function __construct()
    {
        parent::__construct();
        $this->db = new \app\common\model\Webset();
    }
    //首页
    public function index()
    {
        $data = $this->db->index();
        $this->assign('data',$data);
        //视图
        return view();
    }
    //异步修改
    public function edit(){
        $data= input('post.');
        $res = $this->db->edit($data);
    }
}